package com.minshenglife.zanzan.service.impl;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.minshenglife.zanzan.dao.OperateLogDao;
import com.minshenglife.zanzan.entity.OperateLog;
import com.minshenglife.zanzan.service.OperateLogService;


/**
 * 操作日志service
 * @author huodd
 *
 */
@Component
@Transactional
public class OperateLogServiceImpl implements OperateLogService {
	Logger log = LoggerFactory.getLogger(OperateLogServiceImpl.class);
	@Resource
	OperateLogDao operateLogDao;
	
	@Override
	public void add(OperateLog log) {
		operateLogDao.add(log);
	}

	@Override
	public void update(OperateLog log) {
		operateLogDao.update(log);
	}

	@Override
	@Transactional(readOnly=true)
	public void get(Long logId) {
		operateLogDao.get(logId);
	}
	
	
	

}
